package com.lfs.adapter.service;

import com.lfs.interfaces.model.ChannelSupplier;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface ChannelSupplierService {

    /**
     * 获取所有的通道供应商
     *
     * @return
     */
     List<ChannelSupplier> getAllChannelSupplier();

    /**
     * 更新余额
     *
     * @return
     */
     int updateChanneSupplierBalance(String supplier_code, BigDecimal balance);

    /**
     * 置为失效状态
     *
     * @param supplier_code
     * @param isVaild
     */
     int updateChannelSupplier(ChannelSupplier channelSupplier);

    /**
     * 置为失效状态
     *
     * @param supplier_code
     * @param isVaild
     */
     int updateChannelSupplierValid(String supplier_code);

    /**
     * 根据channle_code获取通道信息 从redis中获取
     *
     * @param sid
     * @return
     */
     ChannelSupplier queryChannelConfigByCodeCache(String supplierCode);

     List<ChannelSupplier> queryChannelConfigByAdapterName(String adapterName);

     Map<String, Object> getNotifyInfo(String orderNo);
}
